package db

import (
	"github.com/lishimeng/app-starter"
	"time"
)

type BatchSchedule struct {
	app.Pk
	Name    string    `orm:"column(name)"`
	Handler string    `orm:"column(handler)"`
	StartAt time.Time `orm:"column(start_at)"`
	NextRun time.Time `orm:"column(next_run)"`
	Cron    string    `orm:"column(cron)"`
	Params  string    `orm:"column(params)"`
	ScheduleMemo
	app.TableChangeInfo
}

func (t *BatchSchedule) TableName() string {
	return "batch_schedule"
}
